Component({
  properties: {
    show: { type: Boolean, value: false },
    exportOption: { type: String, value: 'all' },
    selectedBookIndex: { type: Number, value: -1 },
    allBooksList: { type: Array, value: [] },
    modalAnimation: { type: Object, value: null }
  },
  methods: {
    close() { this.triggerEvent('close'); },
    selectOption(e) { const { option } = e.currentTarget.dataset; this.triggerEvent('selectoption', { option }); },
    onPickerChange(e) { this.triggerEvent('pickerchange', { value: e.detail.value }); },
    confirm() { this.triggerEvent('confirm'); }
  }
});
